package com.emep.changzhi.analyse.repository.datamonitor.minute;

import com.emep.changzhi.analyse.entity.datamonitor.minute.DataMinuteIndustrialGas;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.query.Param;

        import java.util.List;

/**
 * @author yangj
 * @version V1.0
 * @Description: 工业废气监测_分钟数据表持久层
 * @date 2018/2/27  14:17
 */
public interface DataMinuteIndustrialGasRepository extends CrudRepository<DataMinuteIndustrialGas , Long> {

        @Query("select * from data_minute_industrial_gas limit :pageSize")
        List<DataMinuteIndustrialGas> dataMinuteIndustrialGasHome(@Param("pageSize") Integer pageSize);
        @Query("select * from data_minute_industrial_gas where token(id)>token(:id) limit :pageSize")
        List<DataMinuteIndustrialGas> dataMinuteIndustrialGasFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);

}
